<?php
hc_core_ClassLoader::load('halo_AbstractViewHelperMapping');
hc_core_ClassLoader::load('halo_HttpRequest');
hc_core_ClassLoader::load('halo_HttpResponse');
final class halo_SystemViewHelperMapping extends halo_AbstractViewHelperMapping {
    public function getViewHelper($name) {
        $viewHelper = null;
        switch($name) {
            case 'httpRequest':
                $viewHelper = $this->httpRequest;
                break;
            case 'httpResponse':
                $viewHelper = $this->httpResponse;
                break;
            case 'uri':
                hc_core_ClassLoader::load('halo_UriViewHelper');
                $viewHelper = new halo_UriViewHelper(
                    $this->httpRequest,
                    $this->httpResponse
                );
                break;
            case 'string':
                hc_core_ClassLoader::load('halo_StringViewHelper');
                $viewHelper = new halo_StringViewHelper(
                    $this->httpRequest,
                    $this->httpResponse
                );
                break;
            case 'javascript':
                hc_core_ClassLoader::load('halo_JavascriptViewHelper');
                $viewHelper = new halo_JavascriptViewHelper(
                    $this->httpRequest,
                    $this->httpResponse
                );
                break;
            case 'css':
                hc_core_ClassLoader::load('halo_CssViewHelper');
                $viewHelper = new halo_CssViewHelper(
                    $this->httpRequest,
                    $this->httpResponse
                );
                break;
            case 'feedLink':
                hc_core_ClassLoader::load('halo_FeedLinkViewHelper');
                $viewHelper = new halo_FeedLinkViewHelper(
                    $this->httpRequest,
                    $this->httpResponse
                );
                break;
        }
        return $viewHelper;
    }
    public function getViewHelperNames() {
        return array('uri', 'javascript', 'css', 'feedLink', 'httpRequest', 'httpResponse');
    }
}
?>
